package com.woniu.houtai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.houtai.entity.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 09:45:58
 */
@Mapper
@Repository
public interface TypeMapper extends BaseMapper<Type> {

    @Select("SELECT type_name FROM t_type WHERE shop_id = #{shopId}")
    @ResultType(String.class)
    List<String> selectTypeNameByShopId(@Param("shopId") Integer shopId);
}
